如何在Linux中安装和使用GPG加密以加密和解密文件和文件夹?

您所在的位置:网站首页 linux 加密软件 如何在Linux中安装和使用GPG加密以加密和解密文件和文件夹?

如何在Linux中安装和使用GPG加密以加密和解密文件和文件夹?

#如何在Linux中安装和使用GPG加密以加密和解密文件和文件夹?| 来源: 网络整理| 查看: 265

Security is an important part of today’s IT operations. There are a lot of tools that provide some part of the security operations. GNU Privacy Guard or simply GPG is one of them. It provides encryption, decryption, digital signatures, and signing.

安全性是当今IT运营的重要组成部分。 有很多工具可提供部分安全操作。 GNU Privacy Guard或GPG就是其中之一。 它提供加密,解密,数字签名和签名。

将GPG安装到Ubuntu,Debian,Mint和Kali (Install GPG To Ubuntu, Debian, Mint and Kali)

For deb or apt based distributions we can install GPG with the following command for gnupg package.

对于基于deb或apt的发行版,我们可以使用gnupg软件包的以下命令安装GPG。

$ sudo apt install gnupg 将GPG安装到CentOS,Fedora,RHEL (Install GPG To CentOS, Fedora, RHEL)

For rpm or yum based distributions we can install GPG with the following command.

对于基于rpm或yum的发行版,我们可以使用以下命令安装GPG。

$ sudo yum install gnupg 创建私钥和公钥 (Create Private and Public Keys)

Now we will start with creating Private and Public Keys. As we know Public Cryptography provides two keys where the private key is a secret key which should be protected accordingly. The public key is as its name suggests open to everyone we want to collaborate with. So we need these keys. we can create them with the --gen-key option like below.

现在,我们将从创建私钥和公钥开始。 众所周知,公共密码学提供了两个密钥,其中私有密钥是秘密密钥,应相应地对其进行保护。 顾名思义,公钥向我们要与之合作的所有人开放。 因此,我们需要这些键。 我们可以使用--gen-key选项创建它们,如下所示。

$ gpg --gen-key

This command will ask us some questions like below.

该命令将向我们询问一些类似以下的问题。

Real name: İsmail Baydan Email address: [email protected] Create Private and Public Keys Create Private and Public Keys 创建私钥和公钥 列出GPG键(List GPG Keys)

We can list-keys created and saved in the current system with the --fingerprint option. We should provide some search terms to this option like the email address or individual name etc. In this example, we will search with the email address ibaydan.

我们可以使用-



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3